package com.cr.manager.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cr.common.annotation.Excel;
import com.cr.common.core.domain.BaseEntity;

/**
 * 租借管理对象 cr_rent
 * 
 * @author lms
 * @date 2024-08-07
 */
@Data
public class Rent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "租借ID", cellType = Excel.ColumnType.NUMERIC)
    private Integer id;

    /** 汽车ID */
    @Excel(name = "汽车ID")
    private Integer carId;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String contactPhone;

    /** 开始出租时间 */
    @Excel(name = "开始出租时间")
    private String startTime;

    /** 结束出租时间 */
    @Excel(name = "结束出租时间")
    private String endTime;

    /** 当前状态 */
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("contact", getContact())
            .append("contactPhone", getContactPhone())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
